{include 'public/header.php'}

<h3>管理序列号</h3>

<p><a href="/member/register" class='btn btn-primary'>创建用户</a></p>

<table class="table table-striped table-bordered">
	<tr>
		<td>序号</td>
		<td>序列号</td>
		<td>机器码</td>
		<td>注册码</td>
		<td>年份</td>
		<td>状态</td>
		<td>创建时间</td>
		<td>注册时间</td>
	</tr>

	{foreach from=$list key=k item=value}  
	<tr>
		<td>{$value.id}</td>
		<td>{$value.xuliehao}</td>
		<td>{$value.jiqima}</td>
		<td>{$value.zhucema}</td>
		<td>{$value.year}</td>
		<td>{if $value.status == 0}<span style="color:green">未使用</span>{else}<span style="color:red">已使用</span>{/if}</td>
		<td>{$value.created_at}</td>
		<td>{$value.registerd_at}</td>
	</tr>
	{/foreach}
	<tr>
		<td colspan="7">
			{$pages}
		</td>
	</tr>
</table>

{include 'public/footer.php'}